#include <iostream>
#include <algorithm>
using namespace std;
int func(int *num,int count)
{
	sort(num,num+count);
	if(count%2==0)
		return ((float)(*(num+count/2)+*(num+count/2-1)))/2;
	else
		return (float)*(num+count/2);
}
int main()
{
	int *num=new int[50],count,i;
	cin>>count;
	for(i=0;i<=count-1;i++)
		cin>>*(num+i);
	int ans=func(num,count);
	cout<<ans<<endl;
	return 0;
}